home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / fix402s.zip / TEST.ZIP / FIXTEST.DOC next >
Text File  |  1994-04-01  |  3KB  |  66 lines

  1.                                                       fixtest.doc 4-94
  2.             
  3.             
  4.             
  5.                               FIX 4.XX PROOF TEST        Page 1 of 1
  6.  
  7.  
  8.            PURPOSE
  9.            -------
  10.             The central algorithm in FIX uses a buffer to find and
  11.             process strings in a continuous input stream of unlimited
  12.             length.  The technically inclined user will recognize the
  13.             potential for insidious undetected omission errors under
  14.             these circumstances.  The input stream must be processed
  15.             one record or block at a time.  But the target string may
  16.             be located anywhere in the input stream, without respect
  17.             to record boundaries.  What happens when the target string
  18.             spans two records?  If you are processing a delimited
  19.             string, what happens when the string falls at the begin-
  20.             ning or end of the record so that a possibly delimiting
  21.             character falls in an adjacent record?  The test data file
  22.             provided here enables the interested user to verify FIX
  23.             performance under these most challenging data conditions.
  24.             
  25.            TEST DESIGN
  26.            -----------
  27.             The test data file has been designed to assure that every
  28.             possible positional relationship between findstring and
  29.             the inter-record boundary is tested.  Test data consists
  30.             of a continuously repeated test pattern that is 5 charac-
  31.             ters in length.  The FIX input record size is (by program
  32.             configuration): 18,176 bytes - Licensed, 18,688 bytes -
  33.             Registered, 18,432 bytes - Shareware.  The test pattern
  34.             size together with FIX record size guarantee that a test
  35.             pattern will shift by one character relative to the inter-
  36.             record boundary with each successive input record read in
  37.             the Licensed configuration, and with every other record in
  38.             the Registered and Shareware configurations.  After 6 one
  39.             character shifts (12 buffer cycles at most), FIX will have
  40.             processed every possible positional relationship between
  41.             the findstring and the inter-record boundary.  And the
  42.             size of the test file assures at least 26 buffer cycles.
  43.             
  44.             Test Data File:        TESTDATA.TXT  500,001 bytes (1 eof)
  45.             Test Pattern:          "abcd " (not including quote marks)
  46.             Pattern Repetitions:   100,000
  47.             
  48.            TEST EXAMPLE
  49.            ------------
  50.             >fix  'abcd '  'abcd efgh i'  testdata.txt  a:testdat2
  51.              TESTDATA.TXT  TESTDAT2  Occurrences replaced: 100,000
  52.             
  53.             >fix  'efgh i'  ''  a:testdat2  testdat3
  54.              TESTDAT2  TESTDAT3  Occurrences replaced: 100,000
  55.             
  56.             >comp  testdata.txt  testdat3                NovaLogic(TM)
  57.             Comparing TESTDATA.TXT and TESTDAT3          Beaverton, OR
  58.             Files compare OK                             (503)524-9184
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65. ::
  66.